#{extends 'main.html' /}
<div id="main">
	
		<h1>Your Search Results</h1>
		Found ${length} matches for your result.
		<ul>
			#{list items:Eres, as:'item1'}
			<li><a href="@{Entity.viewEntity(item1.id)}">${item1.entityName}</a> - Entity</li>
			#{/list}
		</ul>
		<ul>
			#{list items:Tres, as:'item2'}
			<li><a href="@{Tags.showTag(item2.id)}">${item2.name}</a> - Tag</li> #{/list}
		</ul>
		<ul>
			#{list items:Ires, as:'item3'}
			<li><a href="@{PostingIdea.ShowIdea(item3.id)}">${item3.title}</a> - Idea</li>
			#{/list}
		</ul>
		<ul>
			#{list items:Rres, as:'item4'}
			<li><a href="@{RelationName.relationNamesHome(item4.id)}">${item4.relationName}</a> - Relation</li>
			#{/list}
			
		</ul>
		#{if length > 0} -<a href="@{QuickSearch.exportToCSV(search)}"> Export Results to CSV</a> 
		#{/if}
		#{if length < 1} Sorry! We did not find any results matching your
		search. #{/if}
</div>